package db;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import org.apache.log4j.Logger;

/**
 *
 * @author xuhf
 *
 */
public class DbUtil {
    private static Logger log;
    private static final String configFile = "config.properties";
    
    public static String url;
    public static String user;
    public static String name;
    
    
    static{
        log.set
        
        Properties properties = new Properties();
        FileInputStream fis = null;
        try {
            fis = new FileInputStream(configFile);
            properties.load(fis);
        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}
